package com.gamiao.gwt.demo.remoteServiceDemo.server;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.gamiao.gwt.demo.remoteServiceDemo.client.RemoteServiceDemoServlet;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class RemoteServiceDemoServletImpl extends RemoteServiceServlet
		implements RemoteServiceDemoServlet {

	public String[] getComment(int clickTimes, String comment) {
		Date now = new Date();
		SimpleDateFormat timeFormat = new SimpleDateFormat(
				"yyyy-MM-dd HH:mm:ss.SSS");
		String[] returnStrings = { String.valueOf(clickTimes), comment,
				timeFormat.format(now) };
		return returnStrings;
	}
}
